from django.shortcuts import render
from rest_framework.viewsets import ModelViewSet
from rest_framework.permissions import IsAuthenticated
from .serializers import *
from utils.permission import TeacherPermission

# Create your views here.

class ClassesViewSet(ModelViewSet):
    queryset = Classes.objects.filter(is_delete=False)  # 接口操作的所有数据
    serializer_class = ClassesSerializer
    permission_classes = [TeacherPermission]
